import QtQuick
import QtQuick.Controls
import Gui.Components
import Gui.Views
import Gui.Global as G

Item {
    Row {
        anchors {
            right: parent.right
            bottom: parent.bottom
            rightMargin: 9
            bottomMargin: 9
        }
        FlatIconButton {
            id: _openPlaylistBtn
            iconName: "mdi.playlist-music"
            iconSize: 28
            cursorShape: Qt.PointingHandCursor
            onClicked: G.SignalBus.openPlaylist()
            topPadding: pressed ? 4 : 0
        }
        Label {
            id: _playlistCount
            text: playBarViewModel.currentPlaylistTotal
            anchors.verticalCenter: _openPlaylistBtn.verticalCenter
            color: _openPlaylistBtn.currentIconColor
        }
    }
}
